package com.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 视频收藏记录表
 * </p>
 *
 * @author sly
 * @since 2024-01-13
 */
@Getter
@Setter
@TableName("t_user_collection")
@ApiModel(value = "UserCollectionEntity对象", description = "视频收藏记录表")
public class UserCollectionEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("视频投稿id")
    @TableField("videoId")
    private Long videoId;

    @ApiModelProperty("用户id")
    @TableField("userId")
    private Long userId;

    @ApiModelProperty("收藏分组id")
    @TableField("groupId")
    private Long groupId;

    @ApiModelProperty("创建时间")
    @TableField("createTime")
    private Date createTime;


    @TableField(exist = false)
    private Integer currentSize = 30;
    @TableField(exist = false)
    private Integer currentPage = 1;
}
